#ifndef WORLD_H_
#define WORLD_H_

#include "map.h"
#include <vector>
#include <string>
#include "location.h"

using namespace std;

class World{
public:
	World(Map *input_map):
		map(input_map) {initialize();};

	void initialize();
	bool isObjectAtLocation(int y,int x);
	string getObjectAtLocation(int y,int x);

	void updateRobotLocation(string type,Location *loc);

	int getMaxY() {return map->getMaxY();};
	int getMaxX() {return map->getMaxX();};


protected:
	vector<vector<bool> > xygrid;

	vector<vector<string> > type_grid;

	Map *map;

};


#endif /* WORLD_H_ */
